var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var heroAttr = require('../../../app/libs/war/heroAttr');
var config = require('../../config');
var dataApi = require('../../../app/libs/dataApi');
var roleModel = require('../../../app/models/roleModel');
var bagModel = require('../../../app/models/bagModel');
var PlayerManager = require('../../../app/libs/playerManager');

suite('测试heroAttr', function () {
    // var player_manager = new PlayerManager(config.role_id);
    var player_manager = new PlayerManager(10317);
    setup(function (done) {
        player_manager.getModel(['bag', 'skill', 'role', 'build'], done);
    });

    suite('getAttr', function () {
        test('获取英雄属性数据', function () {
            var hero_attr;
            // for (var x = 0; x < 500; x++) {
            hero_attr = heroAttr.getAttr(
                player_manager.role,
                player_manager.bag,
                player_manager.skill,
                player_manager.build);
            // }
            console.log('hero_attr:', hero_attr);
        });
    });
});
